<template>
  <a-card title="系统基本运行信息" :bordered="false" :headStyle="{ padding: '0 15px', border:0}" style="width:100%">
    <div class="cardinfo">
      <div class="cardlist">
        <dl class="briefinfo">
          <!-- <a-avatar :src="require('@/assets/icons/brief.svg')"  :size="64" /> -->
          <dt class="radius"><img src="~@/assets/icons/brief.svg" /></dt>
          <dd>
            <div class="systemhandlebox">江苏农信银行MCA业务画像系统</div>
            <div class="health">
              <b>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
              </b>
              <span>评分</span>
              <strong>92.2</strong><span>分</span>
              <p>江苏农信MCA业务画像系统，用于管理系统运行、信息汇总、工单..</p>
            </div>
          </dd>
        </dl>
        <div class="blueline"></div>
        <div class="summary">
          <dl class="summary-item summary-item-xl">
            <dt><img src="~@/assets/icons/peak.svg" /></dt>
            <dd>
              <div class="peak">
                <strong>765598</strong>
              </div>
              <p class="peak-p">历史交易峰值<span>2020-08-20</span></p>
            </dd>
          </dl>
          <dl class="summary-item summary-item-xl">
            <dt><img src="~@/assets/icons/trade.svg" /></dt>
            <dd>
              <div class="event">
                <strong>23330</strong>
              </div>
              <p>当日交易量</p>
            </dd>
          </dl>
          <dl class="summary-item summary-item-sm">
            <dt><img src="~@/assets/icons/event.svg" /></dt>
            <dd>
              <div class="dot">
                <strong>60</strong>
              </div>
              <p>事件统计</p>
            </dd>
          </dl>
          <dl class="summary-item summary-item-sm">
            <dt><img src="~@/assets/icons/alart.svg" /></dt>
            <dd>
              <div class="alart">
                <strong>5</strong>
              </div>
              <p>告警数量</p>
            </dd>
          </dl>
        </div>
      </div>
    </div>
  </a-card>
</template>

<script>
export default {
  name: 'RunInfo',
  data () {
    return {
      mdl: {}
    }
  },
  created () {
  },
  methods: {
    handleCancel () {
      this.close()
    }
  }
}
</script>
<style lang="less" scoped>
.cardinfo{
  padding: 10px;
  padding-top: 0;
  .cardlist{
    .briefinfo{
      padding: 20px 0 10px 0;
      margin-bottom: 0;
      .radius{
        float: left;
        width: 60px;
        height: 60px;
        line-height: 60px;
        border-radius: 100%;
        text-align: center;
        border: 2px solid #fed296;
        img{
          width: 65%;
          position: relative;
          top: -2px;
        }
      }
      dd{
        margin-left: 80px;
        font-size: 20px;
        .health{
          padding: 0;
          overflow: hidden;
          p{
            padding:0;
            font-size: 13px;
            margin-bottom: 0;
          }
          strong {
            font-size: 20px;
            font-weight: 400;
            color: #99bc45;
          }
          span{
            margin:0 5px;
            font-size: 17px;
          }
          b {
            display: inline-block;
              i {
                color: #f9bd57;
                font-size: 15px;
              }
          }
        }
      }
    }
    .blueline{
      height: 2px;
      background-color: #447abc;
      /* 浏览器不支持的时候显示 */
      background-image: linear-gradient(90deg, #447abc, #d0e8fb);
    }
    .summary{
      padding-top: 20px;
      overflow: hidden;
      .summary-item{
        float: left;
        margin-bottom: 0;
        width: 25%;
        dt {
          float: left;
          width: 40px;
          height: 60px;
          line-height: 60px;
          text-align: center;
          img {
            width: 85%;
          }
        }
        dd{
          p{
            font-size: 12px;
          }
          .peak-p{
            font-size: 12px;
            margin-bottom: 0;
            line-height: 12px;
            position: relative;
            bottom: 5px;
            span{
              display: block;
            }
          }
          .alart,.event,.dot,.peak{
            height: 35px;
            line-height: 35px;
          }
          .alart{
            strong{
              font-size: 25px;
              font-weight: 400;
              color: #fec02f;
            }
          }
          .event{
            strong{
              font-size: 25px;
              font-weight: 400;
              color: #2aa6f9;
            }
          }
          .dot{
            strong{
              font-size: 25px;
              font-weight: 400;
              color: #50ae55;
            }
          }
          .peak{
            strong{
              font-size: 25px;
              font-weight: 400;
              color: #e47427;
              position: relative;
              top: -7px;
            }
          }
        }
      }
      .summary-item-xl{
        width: 30%;
      }
      .summary-item-sm{
        width: 20%;
      }
    }
  }
}
.systemhandlebox{
  font-size: 18px;
}
</style>
